{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[0.01774167 0.71832059 0.54874742 0.41056841 0.82571527 0.00379449\n",
      " 0.28435057 0.77030274 0.85734714 0.45283859]\n",
      "[0.01774167 0.71832059 0.54874742 0.41056841 0.82571527 0.00379449\n",
      " 0.28435057 0.77030274 0.85734714 0.45283859] [[1], [1], [1], [1], [1], [1], [1], [1], [1], [1]]\n"
     ]
    }
   ],
   "source": [
    "import numpy as np\n",
    "\n",
    "# 每个老虎机的中奖概率\n",
    "probs = np.random.uniform(size=10) # 随机生成10个[0,1)之间的数\n",
    "\n",
    "# print(probs)\n",
    "reward = [[1] for i in range(10)] # 每个老虎机的奖励都是1\n",
    "print(probs, reward)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
